﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F1D RID: 3869
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicEnableTalentScRsp : IMessage<RogueMagicEnableTalentScRsp>, IMessage, IEquatable<RogueMagicEnableTalentScRsp>, IDeepCloneable<RogueMagicEnableTalentScRsp>, IBufferMessage
	{
		// Token: 0x1700312B RID: 12587
		// (get) Token: 0x0600AD9D RID: 44445 RVA: 0x001D5C67 File Offset: 0x001D3E67
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicEnableTalentScRsp> Parser
		{
			get
			{
				return RogueMagicEnableTalentScRsp._parser;
			}
		}

		// Token: 0x1700312C RID: 12588
		// (get) Token: 0x0600AD9E RID: 44446 RVA: 0x001D5C6E File Offset: 0x001D3E6E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicEnableTalentScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700312D RID: 12589
		// (get) Token: 0x0600AD9F RID: 44447 RVA: 0x001D5C80 File Offset: 0x001D3E80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicEnableTalentScRsp.Descriptor;
			}
		}

		// Token: 0x0600ADA0 RID: 44448 RVA: 0x001D5C87 File Offset: 0x001D3E87
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnableTalentScRsp()
		{
		}

		// Token: 0x0600ADA1 RID: 44449 RVA: 0x001D5C90 File Offset: 0x001D3E90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnableTalentScRsp(RogueMagicEnableTalentScRsp other) : this()
		{
			this.rogueMagicTalentInfo_ = ((other.rogueMagicTalentInfo_ != null) ? other.rogueMagicTalentInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600ADA2 RID: 44450 RVA: 0x001D5CDC File Offset: 0x001D3EDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnableTalentScRsp Clone()
		{
			return new RogueMagicEnableTalentScRsp(this);
		}

		// Token: 0x1700312E RID: 12590
		// (get) Token: 0x0600ADA3 RID: 44451 RVA: 0x001D5CE4 File Offset: 0x001D3EE4
		// (set) Token: 0x0600ADA4 RID: 44452 RVA: 0x001D5CEC File Offset: 0x001D3EEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicTalentInfo RogueMagicTalentInfo
		{
			get
			{
				return this.rogueMagicTalentInfo_;
			}
			set
			{
				this.rogueMagicTalentInfo_ = value;
			}
		}

		// Token: 0x1700312F RID: 12591
		// (get) Token: 0x0600ADA5 RID: 44453 RVA: 0x001D5CF5 File Offset: 0x001D3EF5
		// (set) Token: 0x0600ADA6 RID: 44454 RVA: 0x001D5CFD File Offset: 0x001D3EFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600ADA7 RID: 44455 RVA: 0x001D5D06 File Offset: 0x001D3F06
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicEnableTalentScRsp);
		}

		// Token: 0x0600ADA8 RID: 44456 RVA: 0x001D5D14 File Offset: 0x001D3F14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicEnableTalentScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.RogueMagicTalentInfo, other.RogueMagicTalentInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600ADA9 RID: 44457 RVA: 0x001D5D64 File Offset: 0x001D3F64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.rogueMagicTalentInfo_ != null)
			{
				num ^= this.RogueMagicTalentInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600ADAA RID: 44458 RVA: 0x001D5DB9 File Offset: 0x001D3FB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600ADAB RID: 44459 RVA: 0x001D5DC1 File Offset: 0x001D3FC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600ADAC RID: 44460 RVA: 0x001D5DCC File Offset: 0x001D3FCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rogueMagicTalentInfo_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.RogueMagicTalentInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600ADAD RID: 44461 RVA: 0x001D5E28 File Offset: 0x001D4028
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.rogueMagicTalentInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueMagicTalentInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600ADAE RID: 44462 RVA: 0x001D5E80 File Offset: 0x001D4080
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicEnableTalentScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.rogueMagicTalentInfo_ != null)
			{
				if (this.rogueMagicTalentInfo_ == null)
				{
					this.RogueMagicTalentInfo = new RogueMagicTalentInfo();
				}
				this.RogueMagicTalentInfo.MergeFrom(other.RogueMagicTalentInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600ADAF RID: 44463 RVA: 0x001D5EE8 File Offset: 0x001D40E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600ADB0 RID: 44464 RVA: 0x001D5EF4 File Offset: 0x001D40F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.rogueMagicTalentInfo_ == null)
					{
						this.RogueMagicTalentInfo = new RogueMagicTalentInfo();
					}
					input.ReadMessage(this.RogueMagicTalentInfo);
				}
			}
		}

		// Token: 0x0400466F RID: 18031
		private static readonly MessageParser<RogueMagicEnableTalentScRsp> _parser = new MessageParser<RogueMagicEnableTalentScRsp>(() => new RogueMagicEnableTalentScRsp());

		// Token: 0x04004670 RID: 18032
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004671 RID: 18033
		public const int RogueMagicTalentInfoFieldNumber = 2;

		// Token: 0x04004672 RID: 18034
		private RogueMagicTalentInfo rogueMagicTalentInfo_;

		// Token: 0x04004673 RID: 18035
		public const int RetcodeFieldNumber = 11;

		// Token: 0x04004674 RID: 18036
		private uint retcode_;
	}
}
